<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <div id="box">

    </div>
</head>
<body>
    <script>
        let box = document.getElementById("box");
        // console.log(box);
        conts =  box.innerHTML = '<h1>插入标题</h1>';
        // console.log(conts);
        
       const count1 = 6;
       const count2 = 5;
      
     let num = count1 > count2 ?  true : false
        console.log(num);

        const state = '你发烧了';
        let you = state == '你发烧了' ? '隔离' :'躺床上'
      let  yem =  box.innerHTML = you;
      console.log(yem);
    </script>
</body>
</html>